FROM openjdk:17-jdk-alpine
ENV TZ=Asia/Shanghai

ENV JAVA_OPTS="-Xms128m -Xmx256m -Djava.security.egd=file:/dev/./urandom"

RUN mkdir -p /wvp

WORKDIR /wvp

EXPOSE 7080
EXPOSE 5066

ADD ./target/wvp-pro-2.7.0-03270935.jar ./

CMD sleep 0;java $JAVA_OPTS -jar wvp-pro-2.7.0-03270935.jar